package com.jb.demo.forum;

import com.jb.web.application.SystemUtil;
import com.jb.web.bean.event.DropElementEvent;
import com.jb.web.bean.event.UIEvent;
import com.jb.web.bean.event.UIEventHandler;
import com.jb.web.context.WebContext;

import com.jb.faces.component.UIComponent;


public class DragDemo implements UIEventHandler {
    public void handleEvent(WebContext pCtx, UIEvent event) {
        DropElementEvent ev = (DropElementEvent)event;
        String droppedId = ev.getDroppedId();
        System.err.println(droppedId);
        UIComponent comp = (UIComponent)ev.getSource();
        System.err.println(comp.getClientId(pCtx));
    }
    public void onShowDialog(WebContext pCtx, UIEvent event) {
        SystemUtil.showDialogBox(pCtx,"borderEditor","borderEditorPanel");
    //    System.err.println("Test");
    }    
}
